package com.yjd.comm.merchant.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.merchant.model.MerchantFundsModel;

import java.util.Map;

/**
 * <b>description</b>：商户资金表业务接口<br>
 * <b>time</b>：2017-10-19 15:49:31 <br>
 * <b>author</b>：  carl
 */
public interface IMerchantFundsService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public MerchantFundsModel insert(MerchantFundsModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(MerchantFundsModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param org_id
	 * @return
	 * @throws Exception
	 */
	public int delete(long org_id) throws Exception;

	/**
	 * 更新机构资金状况
	 * @param org_id
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public int updataByMap(Long org_id,Map param) throws Exception;

}
